.class Lrexsee/fileSelector/RexseeFileSelector$2;
.super Ljava/lang/Object;
.source "RexseeFileSelector.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/fileSelector/RexseeFileSelector;->load(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/fileSelector/RexseeFileSelector;

.field private final synthetic val$path:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/fileSelector/RexseeFileSelector;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iput-object p2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->val$path:Ljava/lang/String;

    .line 154
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    const-string v5, "file://"

    .line 157
    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->val$path:Ljava/lang/String;

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v2}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 158
    .local v1, "file":Ljava/io/File;
    if-eqz v1, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->canRead()Z

    move-result v2

    if-nez v2, :cond_1

    .line 169
    :cond_0
    :goto_0
    return-void

    .line 159
    :cond_1
    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    .line 160
    .local v0, "aPath":Ljava/lang/String;
    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "file://"

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lrexsee/fileSelector/RexseeFileSelector;->mCurrentPath:Ljava/lang/String;

    .line 161
    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->adapter:Lrexsee/fileSelector/FileAdapter;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "file://"

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lrexsee/fileSelector/FileAdapter;->load(Ljava/lang/String;)V

    .line 162
    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->adapter:Lrexsee/fileSelector/FileAdapter;

    invoke-virtual {v2}, Lrexsee/fileSelector/FileAdapter;->notifyDataSetChanged()V

    .line 163
    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    invoke-virtual {v2}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->setTitle()V

    .line 164
    const-string v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 165
    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0

    .line 167
    :cond_2
    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$2;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0
.end method
